package com.yc.testPro;

import com.yc.Testjvm.classload.simple.JavaClassExecuter;

public class TestStr {
	
	public static String tta;
	
	public void m1() {
		String str1 = ",,100145,100176,178,146,";
		String str2 = "0";
		System.out.println(str1.contains(str2));
	}
	
	public void testStringbuffer() {
		StringBuffer sb1 = new StringBuffer();
		sb1.append("abc");
		System.out.println(sb1.length());
		
		StringBuffer sb2 = new StringBuffer();
		sb2.append("def");
		
		sb1.append(sb2);
		System.out.println(sb1.toString());
		
	}
	

	public static void main(String[] args) {
		TestStr ts = new TestStr();
//		ts.m1();
//		System.out.println(com.yc.Testjvm.classload.demo.Test.ms);
//		JavaClassExecuter.println(com.yc.Testjvm.classload.demo.Test.ms);
//		JavaClassExecuter.println(args[0]);
		
//		System.out.println(tta);//无论静态成员是否为空，编译阶段就可以拿到
		
		ts.testStringbuffer();

	}

}
